<template>
  <div>
    <flow :data="datas" :width="800" :height="800"></flow>
  </div>
</template>

<script>
  import Flow from './Flow.vue'
  export default {
    components: {
      'flow': Flow
    },
    data () {
      return {
        datas: [{
          title: '根节点',
          desc: '这个是根节点',
          type: 'rect'
        }, {
          title: '音乐',
          desc: '这个是音乐',
          type: 'rect'
        }]
      }
    },
    mounted () {
      // let vm = this
    }
  }
</script>
<style>
  .flow-item{
    margin-right: 20px;
  }
</style>
